package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Strategy;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.StrategyQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface IStrategyService {


    PageInfo query(QueryObject qo);

    void saveOrUpdate(Strategy strategy);

    List<Strategy> list();

    PageInfo selectCommend(StrategyQueryObject qo);

    Strategy selectByStrategyId(Long id);

    PageInfo selectByRegionId(StrategyQueryObject qo);

    List<Map<String,Object>> selectStrategyByKeyword(String keyword);

    void updateViewCount(Long strategyId);
}
